<?php
$this->breadcrumbs=array(
	'Accounts'=>array('index'),
	'Create',
);

$this->menu=array(
	array('label'=>'List Account','url'=>array('index')),
	array('label'=>'Manage Account','url'=>array('admin')),
);
?>

<div class="lead">Đăng ký tài khoản SRO</div>

<?php
/**
 * @var $form TbActiveForm
 */
$form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'type'=>'horizontal',
	'id'=>'account-form',
	'inlineErrors'=>true,
	'enableAjaxValidation'=>true,
	'enableClientValidation'=>true,
));
$this->widget('bootstrap.widgets.TbAlert', array(
	'block'=>true, // display a larger alert block?
	'fade'=>true, // use transitions?
	'closeText'=>'&times;', // close link text - if set to false, no close link is displayed
	'alerts'=>array( // configurations per alert type
		'success'=>array('block'=>true, 'fade'=>true, 'closeText'=>'&times;'), // success, info, warning, error or danger
	),
));
?>

<p class="help-block">Trường có dấu <span class="required">*</span> bắt buộc phải nhập</p>

<?php echo $form->errorSummary($model); ?>

<?php echo $form->textFieldRow($model,'name',array('class'=>'span5','maxlength'=>255)); ?>

<?php echo $form->textFieldRow($model,'email',array('class'=>'span5','maxlength'=>255)); ?>

<?php echo $form->textFieldRow($model,'phone',array('class'=>'span5','maxlength'=>32)); ?>

<?php echo $form->passwordFieldRow($model,'password',array('class'=>'span5','maxlength'=>32)); ?>

<?php echo $form->textFieldRow($model,'nickname',array('class'=>'span5','maxlength'=>32)); ?>

<?php echo $form->captchaRow($model,'captcha')?>

<div class="form-actions">
	<?php $this->widget('bootstrap.widgets.TbButton', array(
		'buttonType'=>'submit',
		'type'=>'primary',
		'label'=>$model->isNewRecord ? 'Đăng ký tài khoản' : 'Save',
	)); ?>
</div>

<?php $this->endWidget(); ?>
